﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Structures
{
    public class MessageImageRequest : StuctureBase
    {
        private byte _flag = 0x04;
        private int _size;
        private int _crc32;

        public MessageImageRequest()
        {
            this.Length = 9;
        }

        public override void Read(System.IO.BinaryReader reader)
        {
            _flag = reader.ReadByte();
            _size = reader.ReadInt32();
            _crc32 = reader.ReadInt32();

            this.ReadedLength = 9;
        }

        public override void Write(System.IO.BinaryWriter writer)
        {
            writer.Write(_flag);
            writer.Write(_size);
            writer.Write(_crc32);
        }
    }
}
